#!/usr/bin/envpython
#-*-coding:utf-8-*-
import redis
# r = redis_caiji.Redis(host="127.0.0.1",port=6379,db=0)
# print(r.get("dsfs"))
#

pool = redis.ConnectionPool(host='127.0.0.1', port=6379)
r = redis.Redis(connection_pool=pool)

#列表
# r.mset(name2="sfsfs",sdfsf="sfsdf")
# # print(r.getrange("name2",0,1))
# r.delete("192.168")
# r.lpush("192.168",13)
# r.rpushx("192.168",133)
# r.rpush("192.168,sddsf dfd",13)
# r.rpushx("192.168",15)
# r.rpushx("192.168",15)
# r.rpushx("192.168",18)
# r.rpushx("192.168",23)
# print(r.llen("192.168"))
# print(r.lrange("192.168",0,-1))
# print(r.lrange("192.168,sddsf dfd",0,-1))

#
# r.rpush("q",1)
# r.rpush("q",2)
# r.rpush("q",3)
# print(r.lrange("q",0,-1))

import time
a = time.time()
print(a)
b = time.gmtime(a)
print(b)

c=time.strftime("%Y%m%d %H%M%S",time.gmtime(time.time()))
print(c)